package com.lazy.kafkalog;

import org.apache.log4j.PropertyConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by lazy on 16-11-29.
 */
public class KafkalogDemo {
    static Logger logger = LoggerFactory.getLogger(KafkalogDemo.class);

    public static void main(String[] args) throws InterruptedException {
//        PropertyConfigurator.configure(args[0]);
        long start = System.currentTimeMillis();
        for (int i= 0; i< 100000; i++) {
            logger.info("Entering application.");
            logger.debug("Debugging!.");
            logger.info("{} Exiting application.", i);
            // Thread.sleep(1000);
        }
        System.out.println("takes ms: " + (System.currentTimeMillis() - start));
    }
}
